import request from '@/utils/request'

const selfWash = {
  // 获取自助洗车机供应商列表
  getMachineSuppliersList() {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashMachineSuppliersList',
      method: 'get'
    })
  },

  // 获取系列
  getMachineSeriesList(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashMachineSeriesBySuppliersIdList',
      method: 'post',
      data
    })
  },

    // 获取型号
    getMachineModelList(data) {
      return request({
        url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashMachineSuppliersTypeBySeriesIdList',
        method: 'post',
        data
      })
    },

  // 获取自助洗车机列表
  getMachineList(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashMachineList_Admin',
      method: 'post',
      data
    })
  },

 // 删除设备
 deleteMachine(data) {
  return request({
    url: '/api/admin/core/SelfServiceCarWashMachine/DeleteSelfServiceCarWashMachine',
    method: 'post',
    data
  })
},


   // 编辑-获取自助洗车机详情
   getMachineInfo(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashMachineInfoById',
      method: 'post',
      data
    })
  },
  
   // 获取自助洗车机详情
   getMachineInfo_2(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashMachineDetailsById',
      method: 'post',
      data
    })
  },

   // 新增洗车机
   addMachine(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/AddSelfServiceCarWashMachine',
      method: 'post',
      data
    })
  },

  // 修改洗车机
  updateMachine(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/UpdateSelfServiceCarWashMachine',
      method: 'post',
      data
    })
  },

  // 洗车机关联站点
  bindStation(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/SetSelfServiceCarWashStationRelation',
      method: 'post',
      data
    })
  },

  // 商户号列表
  getStoreMerchant(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashStation/GetStoreMerchant',
      method: 'post',
      data
    })
  },

  // 根据商户号id获取站点列表 
  getStation(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashStation/GetSelfServiceCarWashStationByMerchantNum',
      method: 'post',
      data
    })
  },

  // 根据商户号id获取商户信息
  getMerchantInfo(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashStation/GetAccountStoreMerchantRelationList',
      method: 'post',
      data
    })
  },
}


export default selfWash
